$OpenBSD: patch-ext_sockets_sockaddr_conv_c,v 1.1 2014/11/15 13:43:01 robert Exp $
--- ext/sockets/sockaddr_conv.c.orig.port	Wed Mar  5 10:18:00 2014
+++ ext/sockets/sockaddr_conv.c	Mon Mar 24 22:53:00 2014
@@ -11,6 +11,10 @@
 
 extern int php_string_to_if_index(const char *val, unsigned *out TSRMLS_DC);
 
+#if defined(__OpenBSD__)
+#define AI_V4MAPPED 0
+#endif
+
 #if HAVE_IPV6
 /* Sets addr by hostname, or by ip in string form (AF_INET6) */
 int php_set_inet6_addr(struct sockaddr_in6 *sin6, char *string, php_socket *php_sock TSRMLS_DC) /* {{{ */
